from pygame import Surface
from pygame.font import Font

class Title:
    FONT_PATH = "fonts/SetoFont-1.ttf"
    def __init__(self, content: str, size: int, color: str, position: tuple[int, int]) -> None:
        self.content = content
        self.size = size
        self.color = color
        self.position = position
        title = Font(self.FONT_PATH, self.size)
        self.title_surface = title.render(self.content, True, self.color)        

    def draw(self, screen: Surface) -> None:
        screen.blit(self.title_surface, self.position)

    